package giro.general.stage.zoom;

import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import android.os.Bundle;

public class SaliteDetailZoomActivity extends ImageRootActivity {

	private Bitmap mBitmap;
	private String fileNameSalita;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		Intent intent = getIntent();
		fileNameSalita = intent.getStringExtra("salita");

		super.onCreate(savedInstanceState);
	}

	@Override
	protected Bitmap getBitmapImage(Options options) {

		int nameResourceID = getResources().getIdentifier(fileNameSalita, "drawable", getApplicationInfo().packageName);
		mBitmap = BitmapFactory.decodeResource(getResources(), nameResourceID, options);
		return mBitmap;
	}

	@Override
	protected void recycleBitmap() {
		mBitmap.recycle();
	}

}
